setInfos(3, "Damian : chastity", "Cyber Master Damian will take care of you - a big 24/7 script including permissions, punishments...", "Indica, Doti", "started", 0xFFFFFF, "en", ["anal", "long", "exhibition", "femaledom", "formale", "humiliation", "urine", "transgender", "options", "spanking", "shopping", "toys", "sperm"]);

// CyberMistress - chastity
//
def endReached = false
def block = "begin"
if(loadString("cybermistress.wanted_start_block")!=null) {
	block = loadString("cybermistress.wanted_start_block")
	save("cybermistress.wanted_start_block",null)
}
def newBlock = block
while(!endReached && newBlock!=null) {
block = null
switch(newBlock) {
case "begin":
	if(loadBoolean("toys.chastity_belt")!=true) {
		block="nochaste"
		break
	}
	show("")
	block = "begin2"
	break

case "nochaste":
	show("If you don't even have a chastity belt, get out of my sight. You're not worth my time.")
	if(loadInteger("cybermistress.points")==null)
		save("cybermistress.points", 80)
	save("cybermistress.points", -2+loadInteger("cybermistress.points"))
	wait(10)
	block = "finish"
	break

case "begin2":
	def messages2 = ["Well my little slut, I hope you've enjoyed playing with your little dicklet because the party is over.","Well "+loadString("intro.name")+", it's time to evaluate the state of your chastity.","Okay my dirty little wanker, let's discuss your little dickie."]
	show(messages2[getRandom(3)])
	wait(8)
	block = "begin3"
	break

case "begin3":
	show("Go get your chastity belt. I'm locking that little dick up until further notice.")
	showButton("I have it Master")
	block = "begin4"
	break

case "begin4":
	show("Put on your chastity belt for me. Get ready with the lock and wait for my instructions.")
	showButton("Ready Master")
	block = "begin5"
	break

case "begin5":
	show("Wait for it...")
	wait(4)
	block = "begin6"
	break

case "begin6":
	show("Click the lock shut.")
	wait(6)
	block = "chaste"
	break

case "chaste":
	show("Good. Now I want you to take the key and put it somewhere safe and out of the way.")
	showButton("Finished Master")
	block = "chaste2"
	break

case "chaste2":
	show("You are not to touch that key again without my express permission, do you understand slut?")
	showButton("Yes Master")
	block = "chaste3"
	break

case "chaste3":
	show("Well I want to be sure you understand. Say it. Say \"I will not touch the key to my chastity belt without permission from Master!\"")
	showButton("Yes Master")
	block = "chaste4"
	break

case "chaste4":
	show("Say it again slut, louder. Say it like you mean it.")
	showButton("Yes Master")
	block = "chaste5"
	break

case "chaste5":
	show("That's right, you won't. You won't even think about touching that key. The very thought of touching the key without my permission is physically painful to you.")
	showButton("Yes Master")
	block = "chaste6"
	break

case "chaste6":
	show("Good. Now that we understand one another, I'll decide how long I'm going to keep you in chastity.")
	showButton("Thank you Master")
	block = "chaste7"
	break

case "chaste7":
	if(getBoolean("Do you want to make your Master happy and take a longer sentence?"))
		block = "goodchaste"
	else
		block = "badchaste"
	break

case "goodchaste":
	save("jewell.sentence",24*3600)
	if(loadInteger("cybermistress.points")==null)
		save("cybermistress.points", 80)
	save("cybermistress.points", +10+loadInteger("cybermistress.points"))
	show("(You've got "+loadInteger("cybermistress.points")+" points)\n"+"Good slave.")
	showButton("Thank you Master")
	block = "select"
	break

case "badchaste":
	save("jewell.sentence",24*3600)
	if(loadInteger("cybermistress.points")==null)
		save("cybermistress.points", 80)
	save("cybermistress.points", -2+loadInteger("cybermistress.points"))
	show("Hmph. Well I'll keep that in mind for later slut.\n\n"+"(You've got "+loadInteger("cybermistress.points")+" points)")
	showButton("Yes Master")
	block = "select"
	break

case "select":
	show("Hmmmm...")
	wait(1)
	def mlt = 1+getRandom(3) / 2
	def seconds = loadInteger("jewell.sentence")*mlt
	def days = seconds / (24*3600)
	save("jewell.sentence",seconds)
	save("jewell.chastityslave", true)
	save("jewell.deny_Orgasm", getTime()+seconds)
	save("jewell.deny_Masturbation", getTime()+seconds)
	def messages21 = ["You'll stay locked up for "+days+" days.","I'm keeping you chaste for "+days+" days.","You will remain in chastity for "+days+" days.","You will wear the chastity device for "+days+" days."]
	show(messages21[getRandom(4)])
	showButton("Thank you Master")
	block = "outro"
	break

case "outro":
	if(loadInteger("cybermistress.points")==null)
		save("cybermistress.points", 80)
	save("cybermistress.points", +2+loadInteger("cybermistress.points"))
	show("Alright my little chastity slave, you're locked up nice and secure. Don't you feel so much better?\n\n"+"(You've got "+loadInteger("cybermistress.points")+" points)")
	wait(5)
	block = "finish"
	break

case "finish":
	endReached = true
   return "jewell"
	break

default:
	show("Unfinished ? ("+block+")")
	endReached = true
} // end switch 
newBlock = block
} // end while

// This script, from http://ss.deviatenow.com, is protected by this licence : 
// CC by-NC, see http://creativecommons.org/licenses/by-nc/3.0/
